package com.store.app.utils.http;

import com.store.app.http.Stores;

public class URLBuilder {
	 private static String HOST = Stores.http;
	 /**
	  * 
	  * @param urlType
	  * @return
	  */
    public static String getUrl(int urlType) {
        String url = HOST;
        switch (urlType) {
            case RequestType.APP_LOGIN:
                url += "/openapi/app/login";
                break;
            case RequestType.GOODS:
                url += "/openapi/goods";
                break;
            case RequestType.FINANCE:
            	url += "/openapi/finance";
            	break;
            	
            case RequestType.ORDER:
            	url += "/openapi/order";
            	break;
            default:
                break;
        }
        return url;
    }
}
